<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Dashboard extends CI_Controller {

	function __construct()
	{
		parent::__construct();
		session_start();
			if ($_SESSION['userid'] < 1)
			{
				redirect('welcome/index','refresh');
			};	
	}
	
	function index()
	{
	  	$data['title'] = "Dashboard Home";
	  	$data['main'] = 'admin/admin_home';
	 	$data['tinymce'] = '';
	  	$this->load->vars($data);
	  	$this->load->view('admin/dashboard');
	}
	
	function logout()
	{
		unset($_SESSION['userid']);
		redirect('welcome/index','refresh');
	}
	
	function build_site(){
		echo 'Ready to go!';
	}
	
}//end class

/* End of file dashboard.php */
/* Location: ./application/controllers/admin/dashboard.php */

